package oop1;

//游客
public class Tourist {
	String name;
	int age;

	public void selfIntro() {
		System.out.println("我叫" + name + ",今年" + age + "岁了");
	}

	public void pay() {
		selfIntro();
		if (age < 14 || age > 70) {
			System.out.println(name + "年龄是" + age + "，免票进入");
		} else {
			System.out.println(name + "年龄是" + age + ",票价是80元");
		}
	}
}
